package com.shiguiwu.springmybatis.designpattern.abstractfactory.scene;

import java.util.concurrent.TimeUnit;

/**
 * @description: 缓存服务
 * @author: stone
 * @date: Created by 2021/8/12 23:00
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.abstractfactory.scene
 */
public interface CacheService {

    public void set(String key, String value);

    public void set(String key, String value, long time, TimeUnit timeUnit);

    public String get(String key);

    public void del(String key);


}
